﻿using System;
using System.Collections.Generic;
using Wamm.ApplicationExceptions;
using Wamm.Model.Abstract;

namespace Wamm.Model.Entities {
    public class FamilyPhoto : IEntity{
        public int Id { get; set; }

        public string SizeType { get; set; }

        public byte[] Picture { get; set; } 

        public int Width { get; set; }

        public int Height { get; set; }

        public int FamilyId { get; set; }

        public virtual Family Family { get; set; }

        public string AddedBy { get; set; }

        public DateTime Added { get; set; }

        public string LastUpdatedBy { get; set; }

        public DateTime LastUpdated { get; set; }

        public void Validate(IList<RuleViolation> errors) {
            //todo - add call to ValidateFamilyPhoto
        }
    }
}
